package com.ruoyi.system.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 实体类
 */
public class Gas extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 充装介质 */
    @Excel(name = "充装介质")
    private String fillingMedium;

    /** 钢瓶编号 */
    @Excel(name = "钢瓶编号")
    private String gascylindersNum;

    /** 重量 */
    @Excel(name = "重量")
    private String weight;

    /** 容积 */
    @Excel(name = "容积")
    private String volume;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date manufactureDate;

    /** 制造单位 */
    @Excel(name = "制造单位")
    private String manufacturingUnit;

    /** 报废日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报废日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date scrapDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFillingMedium(String fillingMedium)
    {
        this.fillingMedium = fillingMedium;
    }

    public String getFillingMedium()
    {
        return fillingMedium;
    }
    public void setGascylindersNum(String gascylindersNum)
    {
        this.gascylindersNum = gascylindersNum;
    }

    public String getGascylindersNum()
    {
        return gascylindersNum;
    }
    public void setWeight(String weight)
    {
        this.weight = weight;
    }

    public String getWeight()
    {
        return weight;
    }
    public void setVolume(String volume)
    {
        this.volume = volume;
    }

    public String getVolume()
    {
        return volume;
    }
    public void setManufactureDate(Date manufactureDate)
    {
        this.manufactureDate = manufactureDate;
    }

    public Date getManufactureDate()
    {
        return manufactureDate;
    }
    public void setManufacturingUnit(String manufacturingUnit)
    {
        this.manufacturingUnit = manufacturingUnit;
    }

    public String getManufacturingUnit()
    {
        return manufacturingUnit;
    }
    public void setScrapDate(Date scrapDate)
    {
        this.scrapDate = scrapDate;
    }

    public Date getScrapDate()
    {
        return scrapDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fillingMedium", getFillingMedium())
                .append("gascylindersNum", getGascylindersNum())
                .append("weight", getWeight())
                .append("volume", getVolume())
                .append("manufactureDate", getManufactureDate())
                .append("manufacturingUnit", getManufacturingUnit())
                .append("scrapDate", getScrapDate())
                .toString();
    }
}
